<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<f:verbatim>
<script>
	
	function limpaNomeArq(){
		document.getElementById('desc222').value = "";
	}

	
</script>


</f:verbatim>

<rich:modalPanel 
	id="modalPanelHome"
 	zindex="9990"
 	onbeforeshow="limpaNomeArq();"
 	width="200" height="450" 
  	minHeight="170" minWidth="515">

	<f:facet name="header">
		<h:outputText value="Anexo de material"></h:outputText>
	</f:facet>
	 <a4j:keepAlive beanName="mbeanCadastroHome"/>
	<a4j:form id="frmHome">


		
			

			<a4j:commandButton 
					value="Salvar" 
					styleClass="botoes" 
					reRender="botaoAdicionarAnexo,tabela,desc222"
					actionListener="#{mbeanCadastroHome.doSalvar}"
					onclick="Richfaces.hideModalPanel('modalPanelHome'); "/>

<a4j:commandButton 
					value="Cancelar" 
					styleClass="botoes" 
					reRender="tabela"
					onclick="Richfaces.hideModalPanel('modalPanelHome'); "/>

<br>
<h:outputLabel value="* Titulo do Texto"></h:outputLabel>
<br>
<h:inputText value="#{mbeanCadastroHome.homeVO.titulo}" size="45"  id="titulo" maxlength="60"> </h:inputText>

<br>
<h:outputLabel value="* Texto"></h:outputLabel>
<br>
<h:inputTextarea  id="desc222" value="#{mbeanCadastroHome.homeVO.texto}" rows="10" cols="47"> 				
</h:inputTextarea>



						
			

	</a4j:form>

</rich:modalPanel>
